using System.Collections.Generic;
using NodeCanvas.Framework;
using ParadoxNotion.Design;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    [Category("Ggame/Liberty")]
    public class CheckNpcAIBehaviour : AIConditionBaseNode
    {
        public BBParameter<NpcAIBehaviour> npcAIBehaviour;

        protected override bool OnCheck()
        {
            NpcAIBehaviour aiBehaviour = NpcAIBehaviour.None;
            if (_entity.WeaponSystem.HandleWeapon != null)
            {
                aiBehaviour = (NpcAIBehaviour)_entity.WeaponSystem.HandleWeapon.Config.ai_behaviour;
            }
            return aiBehaviour == npcAIBehaviour.value;
        }
    }
}